package com.yysoft.admin.action;

import java.net.URLEncoder;

import com.opensymphony.xwork2.ActionSupport;
import com.yysoft.util.demo.HttpClientMail;

public class DemoAction extends  ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1315075736805334011L;
	
	private String txtTradeName;
	private String txtCheckCode;
	
	
	public String code() throws Exception{
		return "code";
	}

	public String keyQuery() throws Exception{
		HttpClientMail.query(txtCheckCode,URLEncoder.encode(txtTradeName, "UTF-8"));
		return "code";
	}

	public String getTxtTradeName() {
		return txtTradeName;
	}

	public void setTxtTradeName(String txtTradeName) {
		this.txtTradeName = txtTradeName;
	}

	public String getTxtCheckCode() {
		return txtCheckCode;
	}

	public void setTxtCheckCode(String txtCheckCode) {
		this.txtCheckCode = txtCheckCode;
	}

 

}
